<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="quik.group.GroupProc"%>
<%@page import="comm.util.CommUtil"%>
<%
String root = "http://"+request.getServerName()+request.getContextPath();
%>
<div id="quik_top">
	<h1>Quik - Enterprise Microblogging</h1>

	<!--  우측 상단 메뉴  -->
	<ul id="topmenu">
		<%if(session.getAttribute("SESSION_MEMBER_SEQ")!=null){ %>
		<li><a href="<%=root%>/?content=mypage">홈</a></li>
		<%if(session.getAttribute("SESSION_MEMBER_GROUPSEQ")!=null){%>
		<li><a href="<%=root%>/?content=invite">동료 초대하기</a></li>
		<%} %>
		<li><a href="<%=root%>/?content=myinfo">개인 정보 수정</a></li>
		<li><a href="<%=root%>/jsp/member/member_logout.jsp">로그아웃</a></li>
		<%}else{ %>
		<li><a href="<%=root%>/">홈</a></li>
		<li><a href="<%=root%>/">로그인</a></li>
		<li><a href="<%=root%>/?content=member&sub=register">회원가입</a></li>
		<%} %>
	</ul>	
</div>

<!-- Group 로고  -->
<%if(session.getAttribute("SESSION_MEMBER_SEQ")!=null && session.getAttribute("SESSION_MEMBER_GROUPSEQ")!=null){ %>
	<%
		GroupProc group = new GroupProc();
		String groupImg = group.getCurImg(session.getAttribute("SESSION_MEMBER_GROUPSEQ").toString()).toString();
	%>
	<h2>
		<%if(!groupImg.equals("")){ %>
		<a href="<%=root%>"><img width="50" src="<%=root%><%=groupImg%>" alt="CompanyLogo" /></a>
		<%}else{ %>
		<a href="<%=root%>"><%=CommUtil.NVL(session.getAttribute("SESSION_MEMBER_GROUPNAME").toString())%></a>
		<%} %>
		<%if(session.getAttribute("SESSION_ADMIN")!=null){ %>
		<span><a href="?content=groupInfo">회사(그룹) 관리하기</a></span>
		<%} %>
	</h2>
<%} %>